
package pl.edu.agh.mgr.hotel.ws;

/**
 * Please modify this class to meet your needs
 * This class is not complete
 */

import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.ws.RequestWrapper;
import javax.xml.ws.ResponseWrapper;

/**
 * This class was generated by Apache CXF 2.6.2
 * 2012-10-20T17:05:57.248+02:00
 * Generated source version: 2.6.2
 * 
 */
public final class DataServicePortType_DataServicePort_Client {

    private static final QName SERVICE_NAME = new QName("http://ws.hotel.mgr.agh.edu.pl/", "DataService");

    private DataServicePortType_DataServicePort_Client() {
    }

    public static void main(String args[]) throws java.lang.Exception {
        URL wsdlURL = DataService.WSDL_LOCATION;
        if (args.length > 0 && args[0] != null && !"".equals(args[0])) { 
            File wsdlFile = new File(args[0]);
            try {
                if (wsdlFile.exists()) {
                    wsdlURL = wsdlFile.toURI().toURL();
                } else {
                    wsdlURL = new URL(args[0]);
                }
            } catch (MalformedURLException e) {
                e.printStackTrace();
            }
        }
      
        DataService ss = new DataService(wsdlURL, SERVICE_NAME);
        DataServicePortType port = ss.getDataServicePort();  
        
        {
        System.out.println("Invoking getHotelData...");
        pl.edu.agh.mgr.hotel.ws.DataRequest _getHotelData_dataRequest = new pl.edu.agh.mgr.hotel.ws.DataRequest();
        _getHotelData_dataRequest.setName("Name779919006");
        pl.edu.agh.mgr.hotel.ws.DataResponse _getHotelData__return = port.getHotelData(_getHotelData_dataRequest);
        System.out.println("getHotelData.result=" + _getHotelData__return);


        }

        System.exit(0);
    }

}
